<?php
namespace app\index\model;

use think\Model;

class CouponTrade extends Model
{
	function UserTrade(){
		return $this->hasOne('CouponUserTrade','trade_id','trade_id');
	}

	function user(){
		return $this->belongsTo('UserInfo', 'user_id');
	}

	function shareUser(){
		return $this->belongsTo('UserInfo', 'share_user_id');
	}
}